package net.techwatch.gwt.mvp.client.service;

import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class GotName implements AsyncCallback<GetNameResponse> {

	@Override
	public void onFailure(Throwable caught) {
		// do something
	}

	@Override
	public void onSuccess(GetNameResponse result) {
		got(result.getName());
	}

	public abstract void got(String result);
}
